package me.zhenqu.redis;

import java.util.List;
import java.util.Map;

/**
 * Created at 11-10-17
 *
 * @author yonghui.chen
 */
public abstract class GenericCache<A> {
    public abstract A get(String key);

    public abstract boolean put(String key, A value);

    public abstract void mput(Map<String, A> values);

    public abstract Map<String, A> mget(List<String> keys);

    public abstract boolean put(String key, A value, int timeoutSeconds);

    public abstract void mput(Map<String, A> values, int timeoutSeconds);

    public abstract void remove(String key);
}
